

/* First created by JCasGen Mon Mar 28 12:51:53 CEST 2011 */
package ia1011.zanzibar.chaos.type;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.cas.FSArray;
import org.apache.uima.jcas.tcas.Annotation;


/** A Phrase is a graph whose nodes are constituents and edges are the grammatical relations between the constituents.
 * Updated by JCasGen Mon Mar 28 12:52:46 CEST 2011
 * XML source: /home/berardino/universita/IA/progetti_IA/Zanzibar/desc/Chaos/TypeSystemDescriptors/ChaosUimaTypeSystem.xml
 * @generated */
public class UimaSentence extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(UimaSentence.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected UimaSentence() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public UimaSentence(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public UimaSentence(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public UimaSentence(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: caseSensitive

  /** getter for caseSensitive - gets 
   * @generated */
  public boolean getCaseSensitive() {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_caseSensitive == null)
      jcasType.jcas.throwFeatMissing("caseSensitive", "ia1011.zanzibar.chaos.type.UimaSentence");
    return jcasType.ll_cas.ll_getBooleanValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_caseSensitive);}
    
  /** setter for caseSensitive - sets  
   * @generated */
  public void setCaseSensitive(boolean v) {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_caseSensitive == null)
      jcasType.jcas.throwFeatMissing("caseSensitive", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.ll_cas.ll_setBooleanValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_caseSensitive, v);}    
   
    
  //*--------------*
  //* Feature: constituents

  /** getter for constituents - gets 
   * @generated */
  public FSArray getConstituents() {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_constituents == null)
      jcasType.jcas.throwFeatMissing("constituents", "ia1011.zanzibar.chaos.type.UimaSentence");
    return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents)));}
    
  /** setter for constituents - sets  
   * @generated */
  public void setConstituents(FSArray v) {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_constituents == null)
      jcasType.jcas.throwFeatMissing("constituents", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.ll_cas.ll_setRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents, jcasType.ll_cas.ll_getFSRef(v));}    
    
  /** indexed getter for constituents - gets an indexed value - 
   * @generated */
  public UimaConstituent getConstituents(int i) {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_constituents == null)
      jcasType.jcas.throwFeatMissing("constituents", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents), i);
    return (UimaConstituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents), i)));}

  /** indexed setter for constituents - sets an indexed value - 
   * @generated */
  public void setConstituents(int i, UimaConstituent v) { 
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_constituents == null)
      jcasType.jcas.throwFeatMissing("constituents", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents), i);
    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_constituents), i, jcasType.ll_cas.ll_getFSRef(v));}
   
    
  //*--------------*
  //* Feature: dependencies

  /** getter for dependencies - gets 
   * @generated */
  public FSArray getDependencies() {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_dependencies == null)
      jcasType.jcas.throwFeatMissing("dependencies", "ia1011.zanzibar.chaos.type.UimaSentence");
    return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies)));}
    
  /** setter for dependencies - sets  
   * @generated */
  public void setDependencies(FSArray v) {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_dependencies == null)
      jcasType.jcas.throwFeatMissing("dependencies", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.ll_cas.ll_setRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies, jcasType.ll_cas.ll_getFSRef(v));}    
    
  /** indexed getter for dependencies - gets an indexed value - 
   * @generated */
  public UimaDependency getDependencies(int i) {
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_dependencies == null)
      jcasType.jcas.throwFeatMissing("dependencies", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies), i);
    return (UimaDependency)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies), i)));}

  /** indexed setter for dependencies - sets an indexed value - 
   * @generated */
  public void setDependencies(int i, UimaDependency v) { 
    if (UimaSentence_Type.featOkTst && ((UimaSentence_Type)jcasType).casFeat_dependencies == null)
      jcasType.jcas.throwFeatMissing("dependencies", "ia1011.zanzibar.chaos.type.UimaSentence");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies), i);
    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaSentence_Type)jcasType).casFeatCode_dependencies), i, jcasType.ll_cas.ll_getFSRef(v));}
  }

    